package com.itheima.App;

import com.itheima.Service.PersonService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class app4 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("application-Person.xml");
        PersonService person = (PersonService) ca.getBean("Personservice");
        person.save();
    }
}
